#ifndef CORRELATIONFILTER_H
#define CORRELATIONFILTER_H

#include <linkfilter.h>
#include <anatomicallink.h>

class CorrelationFilter :
	public LinkFilter
{
public:
	enum FilterMode
	{
		Above,
		Below,
		Between
	};

	CorrelationFilter(void);
	~CorrelationFilter(void);

	void setFilterToAcceptAbove(double corr);
	void setFilterToAcceptBelow(double corr);
	void setFilterToAcceptBetween(double corr1, double corr2);

	virtual bool accepts(AnatomicalLink*);
	virtual inline LinkFilter::FilterType getType() { return LinkCorrelationFilter; }

private:
	FilterMode mode;
	double corrAbove;
	double corrBelow;
};

#endif